package me.sunpeng.kafka;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;

/**
 * @author sp
 * @create 2022-04-06
 */
public class Main {
    public static void main(String[] args) throws NoSuchFieldException {
        for (Field declaredField : A.class.getDeclaredFields()) {

            System.out.println("GenericType:" + declaredField.getGenericType());
            System.out.println("Type " + declaredField.getType());
            System.out.println("*************");

            ArrayList<Object> objects = new ArrayList<>();
            ArrayList<? extends Object> data = new ArrayList<>();
            List<String> a = new ArrayList<>();

        }

    }

    static class A {
        public List<String> a;

        public List b;

        public String c;

        public Integer d;

        public Boolean e;

        public Double f;

    }
}
